package com.ccs.testcase;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;

import com.ccs.functions.Logout;
import com.ccs.functions.Webdriver;
import com.ccs.testdatas.*;

public class TestData_Transmittal {

	private static WebDriver driver;
	
	@Before
	public void startBrowser() throws Exception{
		Webdriver d = new Webdriver();
		driver = d.startUp();
	}
	/*
	@Test
	public void pos() throws Exception{
		System.out.println("Start Test Data: POS");
		Pos pharma = new Pos();
		pharma.pos(driver);
		Logout out = new Logout();
		out.hcs(driver);
		System.out.println("End Test Data: POS\n");
	}

	
	@Test
	public void das_oss() throws Exception{
		Dasoss oss = new Dasoss();
		Logout out = new Logout();
		oss.dasoss(driver);
		out.hcs(driver);

		System.out.println("Start Test Data: DASOSS");
		for(int x=0; x<21; x++)
		{
			oss.dasoss(driver);
			out.hcs(driver);
		}
		System.out.println("End Test Data: DASOSS\n");

	}
	 */
	/*
	@Test
	public void operating_room() throws Exception{
		System.out.println("Start Test Data: SPECIAL UNIT");
		OperatingRoom or = new OperatingRoom();
		or.or(driver);
		Logout out = new Logout();
		out.hcs(driver);
		System.out.println("End Test Data: SPECIAL UNIT\n");
	}
	*/
	@Test
	public void inpatient_hmo() throws Exception{
		System.out.println("Start Test Data: INPATIENT HMO");
		InpatientHMO hmo = new InpatientHMO();
		hmo.inpatient(driver);
		Logout out = new Logout();
		out.hcs(driver);
		System.out.println("End Test Data: INPATIENT HMO\n");
	}
		
	@After
	public void endBrowser(){
		driver.quit();
	}
	
}
